//
//  AppDelegate.m
//  Peso Guide
//
//  Created by macbook on 2025/6/5.
//

#import "AppDelegate.h"
#import "GuideViewController.h"
#import <AppTrackingTransparency/ATTrackingManager.h>
#import <AdSupport/ASIdentifierManager.h>
#import "IQKeyboardManager/IQKeyboardManager.h"
#import "ViewController.h"
//#import "netfox/netfox-Swift.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.

    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    
//    [[NFX sharedInstance] start];

    ViewController *vc = [[ViewController alloc] init];
    vc.application = application;
    vc.launchOptions = launchOptions;
    self.window.rootViewController = vc;
    
    [self initKeyboardManager];
    
    [self.window makeKeyAndVisible];

    return YES;
}

- (void)initKeyboardManager {
    // 获取实例
    IQKeyboardManager *manager = [IQKeyboardManager sharedManager];
    /*初始化IQKeyboardManager*/
    manager.shouldResignOnTouchOutside = YES;
    /*设置键盘上面按钮显示 关闭*/
    manager.toolbarDoneBarButtonItemText = [Lang set:@"Close"];
    // 控制是否显示键盘上的工具条
    manager.enableAutoToolbar = YES;
}

@end
